package com.itheima.mp.Service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.PageQuery;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService extends IService<User> {
    void deduction(Long id, Integer money);

    UserVO queryUserAndAddresses(Long id);

    List<UserVO> queryUserAndAddressesByIds(List<Long> ids);

    PageDTO<UserVO> queryUsersPage(PageQuery query);
}
